﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;

namespace Assets.game
{

    enum MessageType
    {
        ONLINE_FULL,
        JOIN_GAME,
        CLIENT_START_ROOM,
        START_ROOM
    }
    [Serializable]
    class Message
    {
        public MessageType type;
        public int[] intParas;
        public List<Card> cards;

        public string ToJson()
        {
            return JsonUtility.ToJson(this);
        }

        public static Message CLIENT_START_ROOM()
        {
            Message message = new Message();
            message.type = MessageType.CLIENT_START_ROOM;
            return message;
        }
    }
}
